﻿@model JobButenko.Models.Vacancy

@{
    ViewBag.Title = "Добавить вакансию";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Добавить вакансию</h2>
@using (Html.BeginForm("CreateVacancy", "Vacancy", FormMethod.Post, new {id = "myFrom"}))
{
    <div>
        <table>
            <tr>
                <td>Название:</td>
                <td>@Html.TextBoxFor(model => model.VacancyName, new {@class = "serchVacancyTxt"})</td>
                <td>@Html.ValidationMessageFor(model => model.VacancyName)</td>
            </tr>
            <tr>
                <td>Сфера деятельности:</td>
                <td>@Html.DropDownListFor(model => model.ProfFieldId, (IEnumerable<SelectListItem>) ViewData["ProfField"], new {@class = "serchVacancyDdl"})</td>
                <td>@Html.ValidationMessageFor(model => model.ProfFieldId)</td>
            </tr>
            <tr>
                <td>Должность:</td>
                <td>@Html.DropDownListFor(model => model.PostId, (IEnumerable<SelectListItem>) ViewData["Post"], new {@class = "serchVacancyDdl"})</td>
                <td>@Html.ValidationMessageFor(model => model.PostId)</td>
            </tr>
            <tr>
                <td>Зарплата:</td>
                <td>@Html.DropDownListFor(model => model.SalaryId, (IEnumerable<SelectListItem>) ViewData["Salary"], new {@class = "serchVacancyDdl"})</td>
                <td>@Html.ValidationMessageFor(model => model.SalaryId)</td>
            </tr>
            <tr>
                <td>Дата выхода на работу:</td>
                <td>@Html.TextBoxFor(model => model.DateOfStartWork, new {@class = "serchVacancyTxt", id = "datePickerOne"})</td>
                <td>@Html.ValidationMessageFor(model => model.DateOfStartWork)</td>
            </tr>
            <tr>
                <td>Дата завершения срока действи вакансии:</td>
                <td>@Html.TextBoxFor(model => model.ValidityJob, new {@class = "serchVacancyTxt", id = "datePickerTwo"})</td>
                <td>@Html.ValidationMessageFor(model => model.ValidityJob)</td>
            </tr>
            <tr>
                <td>Описание:</td>
                <td>@Html.TextAreaFor(model => model.Info, new {@class = "textAreaInfo"})</td> 
                <td>@Html.ValidationMessageFor(model => model.Info)</td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="2">
                    <input class="buttonForm" type="submit" value="Добавить"/>
                </td>
            </tr>
        </table>
    </div>
}